package com.itheima01;

public class ZiDiYiException {
    public static void main(String[] args) {
        int score = 101;
        try {
            method(score);
        } catch (HightException e) {
            e.printStackTrace();
        } catch (LowException e) {
            e.printStackTrace();
        }
        System.out.println("正常");

    }

    public static void method(int score) throws HightException, LowException {
        if (score > 100) {
            throw new HightException("您的数据大了");
        }
        if (score < 0) {
            throw new LowException("您的数据小了");
        }
        System.out.println("数据正确");

    }
}
